/*
 * BoardEvent.cpp
 *
 *  Created on: Mar 7, 2011
 *      Author: Michael Ziminsky
 */

#include "BoardEvent.h"

namespace model
{
	BoardEvent::BoardEvent(ChessBoard* const source, const Location& loc, const myTypes::cPiece& value) :
		source(source), loc(loc), value(value) {}

	BoardEvent::BoardEvent(const BoardEvent& b) : source(b.source), loc(b.loc), value(b.value) {}

	ChessBoard& BoardEvent::getSource() const
	{
		return *source;
	}

	const Location& BoardEvent::getLocation() const
	{
		return loc;
	}

	const myTypes::cPiece& BoardEvent::getValue() const
	{
		return value;
	}
}
